let mysqlpool = require("../../model/connect");
const post_loveStation=async (request,response)=>{
    console.log(request.body);
    let person=request.body.person; 
    let charge_id=request.body.charge_id; 

    let sql_insert = `insert into love_station (charge_id,person) values ("${charge_id}","${person}")`;
    try {
        await mysqlpool.query(sql_insert, (err,res)=>{
            if(res.affectedRows){
                response.send('ok');
            }
        })
    } catch (error) {
        response.send('error');
    }
    
}
module.exports=post_loveStation